﻿using System;
using Autofac;
using Autofac.Integration.Mvc;

namespace SlamCms.Services
{
	public class AutofacSlamCmsDependencyResolver : AutofacDependencyResolver, IDependencyResolver
	{
		/// <summary>
		/// Initializes a new instance of the <see cref="AutofacDependencyResolver"/> class.
		/// </summary>
		/// <param name="container">The container.</param>
		public AutofacSlamCmsDependencyResolver(IContainer container) 
			: base(container)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="AutofacDependencyResolver"/> class.
        /// </summary>
        /// <param name="container">The container.</param>
        /// <param name="configurationAction">Action on a <see cref="ContainerBuilder"/>
        /// that adds component registations visible only in nested lifetime scopes.</param>
		public AutofacSlamCmsDependencyResolver(IContainer container, Action<ContainerBuilder> configurationAction)
			 : base(container)
        {}
	}
}
